package com.user_service_server;

import com.model.UserVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zy
 * on 2018/3/8.
 */
@RestController
public class HelloController {

    @GetMapping(value = "/hello2")
    public String hello2(){
        UserVO userVO = new UserVO();
        userVO.setId(2);
        userVO.setName("22222");

        return "hello!!!"+userVO.toString();
    }
}
